import com.sun.xml.internal.ws.util.QNameMap;

import java.util.*;
/*

public class MapTest {
    public static void main(String[] args) {
        */
/*HashMap<Integer,String> hMap = new HashMap<>();
        hMap.put(1,"sss");
        hMap.put(2,"ddd");

        //Integer 的toString和equals方法都重写过
        hMap.put(1,"sssss");
        hMap.put(2,"ddddd");
        hMap.put(3,"ddddddd");
        hMap.put(1,"我是你爹我把你覆盖");
        //
        Set<Map.Entry<Integer,String >> set = hMap.entrySet();
        for(Map.Entry<Integer,String> e : set) {
            System.out.println(e);
            System.out.println(e.getKey()+"--->"+e.getValue());
        }
        System.out.println("===============================================");
        Iterator<Map.Entry<Integer,String>> it = set.iterator();
        while (it.hasNext()) {
            Map.Entry<Integer,String> node = it.next();
            //System.out.println(node);
            System.out.println(node.getKey()+"--->>>"+node.getValue());//为什么？？

*//*


        }
    }
*/


//}//
class A {
      static class C{

        public void print2() {
            System.out.println("b");
        }
    }

}
public class MapTest {
    public static void main(String[] args) {
       HashMap<Integer,String> hashMap = new HashMap<>();
       Set<Map.Entry<Integer,String>> set = hashMap.entrySet();
    }
}